#ifndef __MYSCREEN_H__
#define __MYSCREEN_H__

#include <Windows.h>
#include "Infor.h"
class CScreen
{
public:
	RECT Camera;
	CScreen(int top)
	{
		Camera.left=0;
		Camera.top=top;
		Camera.right=Camera.left+WINDOW_WIDTH;
		Camera.bottom=Camera.top+WINDOW_HEIGHT;
	}
	void Reset()
	{
		Camera.left=0;
		Camera.top=14400;
		Camera.right=Camera.left+WINDOW_WIDTH;
		Camera.bottom=Camera.top+WINDOW_HEIGHT;
	}
	void MoveCamera(int detaY)
	{
		if (Camera.top<0)
		{
			Camera.top=0;
			return;
		}
		Camera.top+=detaY;
		Camera.bottom+=detaY;
	}
};
#endif